package njust.edu.entity;

import java.sql.Timestamp;

public class Trade {
    private Long id;            //订单号
    private Integer dish_num;   //菜品数量
    private Float price;        //价格
    private Long userId;        //点餐用户ID
    private User user;          //点餐用户
    private Integer customer_table;//桌号
    private Timestamp date;     //订单时间
    private Integer state;      //订单状态
    private TradeState tradeState;//订单状态
    private Long staff_Id;       //接单员工ID

    public Long getStaff_Id() {
        return staff_Id;
    }

    public void setStaff_Id(Long staff_Id) {
        this.staff_Id = staff_Id;
    }

    @Override
    public String toString() {
        return "Trade{" +
                "id=" + id +
                ", dish_num=" + dish_num +
                ", price=" + price +
                ", userId=" + userId +
                ", user=" + user +
                ", customer_table=" + customer_table +
                ", date=" + date +
                ", state=" + state +
                ", tradeState=" + tradeState +
                ", staff_Id=" + staff_Id +
                '}';
    }

    public Trade(Long id, Integer dish_num, Float price, Long userId, Integer customer_table, Timestamp date, Integer state, Long staff_Id) {
        this.id = id;
        this.dish_num = dish_num;
        this.price = price;
        this.userId = userId;
        this.customer_table = customer_table;
        this.date = date;
        this.state = state;
        this.staff_Id = staff_Id;
    }

    public Trade(Long id) {
        this.id = id;
    }

    public Trade() {
        super();
    }

    public Trade(Long id, Integer dish_num, Float price, Long userId,Integer customer_table, Timestamp date, Integer state, TradeState tradeState) {
        this.id = id;
        this.dish_num = dish_num;
        this.price = price;
        this.userId = userId;
        this.customer_table = customer_table;
        this.date = date;
        this.state = state;
        this.tradeState = tradeState;
    }

    public Trade(Long id, Integer dish_num, Float price, Long userId, Integer customer_table, Timestamp date, Integer state) {
        this.id = id;
        this.dish_num = dish_num;
        this.price = price;
        this.userId = userId;
        this.customer_table = customer_table;
        this.date = date;
        this.state = state;
    }

    public Trade( Integer dish_num, Float price, Long userId, Integer customer_table, Timestamp date, Integer state) {
        this.dish_num = dish_num;
        this.price = price;
        this.userId = userId;
        this.customer_table = customer_table;
        this.date = date;
        this.state = state;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getDish_num() {
        return dish_num;
    }

    public void setDish_num(Integer dish_num) {
        this.dish_num = dish_num;
    }

    public Float getPrice() {
        return price;
    }

    public void setPrice(Float price) {
        this.price = price;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Integer getCustomer_table() {
        return customer_table;
    }

    public void setCustomer_table(Integer customer_table) {
        this.customer_table = customer_table;
    }

    public Timestamp getDate() {
        return date;
    }

    public void setDate(Timestamp date) {
        this.date = date;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public TradeState getTradeState() {
        return tradeState;
    }

    public void setTradeState(TradeState tradeState) {
        this.tradeState = tradeState;
    }

}
